package com.qq.bean;

import java.util.Date;

public class Users {
	private int userId;
	private String nickName;
	private String realName;
	private String account;
	private String password;
	private String avatar;//头像
	private double money;
	private Date createTime;
	private String email;
	private String phone;
	private String address;
	private String role;
	public Users() {}//(//realName,nickName,account,password,visitPath,0);
	public Users(String realName, String nickName, String account, String password, String visitPath, int money) {
		this.nickName=nickName;
		this.account=account;
		this.password=password;
		this.avatar=visitPath;
		this.money=money;
		this.realName=realName;
	}
	public Users(String nickName, String account, String visitPath, double userMoney) {
		this.nickName=nickName;
		this.account=account;
		this.avatar=visitPath;
		this.money=userMoney;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getAvatar() {
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	@Override
	public String toString() {
		return "Users [userId=" + userId + ", nickName=" + nickName + ", realName=" + realName + ", account=" + account
				+ ", password=" + password + ", avatar=" + avatar + ", money=" + money + ", createTime=" + createTime
				+ ", email=" + email + ", phone=" + phone + ", address=" + address + ", role=" + role + "]";
	}
	public Users(String account, String password, String email, String phone, String address) {
		super();
		this.account = account;
		this.password = password;
		this.email = email;
		this.phone = phone;
		this.address = address;
	}
	
	
	
}
